DescribeGroupedTags
Description
call the DescribeGroupedTags interface to query the statistics of asset labels.
Request Method
POST
Request Path
/apsara/route/Sas/DescribeGroupedTags
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
MachineTypes | BODY | string | No | ecs | asset type. If the asset type is not specified, the label information of all types of assets is queried. ecs: server cloud_product: cloud product |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestId | string | 7E0618A9-D5EF-4220-9471-C42B5E92719F | request ID of the result. |
TagId | integer | 8704 | tag ID. |
HttpStatusCode | integer | 200 | the status code of the request data result. |
GroupedFileds | array | No sample value for this parameter. | statistics of asset labels. |
Count | string | 2 | the number of assets corresponding to the label. |
Success | boolean | true | whether the data request was successful. true: the request was successful false: request failed |
Name | string | test | tag name. |
Example
Successful Response example
{
"RequestId":"7E0618A9-D5EF-4220-9471-C42B5E92719F",
"TagId":"8704",
"HttpStatusCode":"200",
"GroupedFileds":"",
"Count":"2",
"Success":"true",
"Name":"test"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}